package tothreedesignmodel.prototype;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author lzhphantom
 * @Description
 * @Date 创建于 16:23 2020/7/17
 * @Modified
 */
@Data
@AllArgsConstructor
public class Circle extends Shape {
    private int r;

    @Override
    public void countArea() {
        System.out.println("该圆的面积=" + 3.1415 * r * r );
    }
}
